package org.jsbd.boss.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.dao.IMiguMusicSearchDAO;
import org.jsbd.boss.domian.MiguMusicRetentDoNumStatistics;
import org.jsbd.boss.domian.MiguMusicSearchVo;
import org.springframework.stereotype.Repository;

@Repository("miguMusicSearchDao")
public class MiguMusicSearchDAOImpl extends CrackBaseDao implements IMiguMusicSearchDAO {

	@Override
	public Map<String, Object> selectNewTaskExecListPage(DataGridModel page, MiguMusicSearchVo miguMusicSearchVo) {
		miguMusicSearchVo = (miguMusicSearchVo == null ? new MiguMusicSearchVo() : miguMusicSearchVo);
		miguMusicSearchVo.setPageInfo(page);
	    Map<String, Object> results = new HashMap<String, Object>();
	    results.put("rows", super.queryForList("qy_migu_music_search.SELECT_NEW_TASK_EXEC_LIST", miguMusicSearchVo));
	    results.put("total", super.queryForCount("qy_migu_music_search.SELECT_NEW_TASK_EXEC_COUNT", miguMusicSearchVo));
	    return results;
	}
	
	@Override
	public List<MiguMusicRetentDoNumStatistics> selectRetentTaskExecList(MiguMusicSearchVo miguMusicSearchVo) {
	    return super.queryForList("qy_migu_music_search.SELECT_RETENT_TASK_EXEC", miguMusicSearchVo);
	}

}
